package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.District;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DistrictRepository extends MongoRepository<District, String> {
    District findByDistrictUuidAndCompanyUuid(String districtUuid,String companyUuid);

    List<District> findAllByCityCodeAndCorporationCode(String cityCode, String corporationCode);

    List<District> findAllByCorporationCode(String corporationCode);
}
